#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QDialog>
#include <QPushButton>
#include <QLineEdit>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget;}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:

private:
    QString    inputText;
    QString    outputText;

private:
    Ui::Widget *ui;
    QDialog *dialog;

    void Correct();
    void Correct2();
    void UnCorrect();
    void connect2Dialog();
    void connect2Dialog(QPushButton *button);
    void disconnect2Dialog(QPushButton *button);
    void processOn();
    void lastQuestion();
};
#endif // WIDGET_H
